load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")

oncall("scm_client_infra")

python_unittest(
    name = "test",
    srcs = glob(["*.py"]),
    compatible_with = [
        "ovr_config//os:linux",
        "ovr_config//os:macos",
    ],
    env = {
        "EDENFS_UNITTEST": "1",
    },
    deps = [
        "fbsource//third-party/pypi/toml:toml",
        "//eden/fs/cli:lib",
        "//eden/fs/cli:main_lib",
        "//eden/fs/cli:proc_utils",
        "//eden/fs/cli:telemetry",
        "//eden/fs/cli:version",
        "//eden/fs/cli/doctor/test/lib:lib",
        "//eden/fs/cli/test/lib:lib",
        "//eden/fs/service:thrift-py-deprecated",
        "//eden/test_support:py",
    ],
)

python_unittest(
    name = "wintests",
    srcs = glob(["windows/*.py"]),
    compatible_with = [
        "ovr_config//os:windows",
    ],
    env = {
        "EDENFS_UNITTEST": "1",
    },
    deps = [
        "//eden/fs/cli:lib",
    ],
)
